package com.nuedu.corejava.jdbc.bean;

import java.util.Date;
/**
 * <pre>
 * 使用面向对象编程思路，面向数据库的表格设计Java类
 * 编写一个类与数据库的表格形成对应的关系：类名与表名对应，类的属性与表的列队应（名称与名称对应，数据类型与数据类型对应）
 * 
 * 
 * </pre>
 * 
 * @author admin
 */



public class Users {
	//用户编号
	private int id;
	//用户账号
	private String name;
	
	//年龄
	private int age;
	
	//出生日期
	private Date birthDate;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public Date getBirthDate() {
		return birthDate;
	}
	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}
	public Users() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Users(int id, String name, int age, Date birthDate) {
		super();
		this.id = id;
		this.name = name;
		this.age = age;
		this.birthDate = birthDate;
	}
	
	

}
